package com.cxl.learn.controller;

import com.cxl.learn.fegin.FeginServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 崔学磊
 * @Date: 2022/3/25 19:51
 * @Description:
 */
@RestController
@RequestMapping(value = "fegin-server")
public class FeginController {

    @Autowired
    private FeginServer feginServer;

    @GetMapping(value = "/demo")
    public String demo() {
        return "远程调用服务信息:"+feginServer.demo();
    }
}
